import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../generated/assets.dart';
import '../app_color.dart';
import '../app_image.dart';
import '../app_text.dart';

class ConnectServiceDialog extends StatelessWidget {
  const ConnectServiceDialog({super.key});

  @override
  Widget build(BuildContext context) {
    final child = Column(
      children: [
        Row(
          children: [
            const Spacer(),
            GestureDetector(
              onTap: () {
                Navigator.of(context).pop();
              },
              child: Icon(Icons.close, color: AppColor.white_60, size: 18.w),
            ),
          ],
        ),
        Padding(
          padding: const EdgeInsets.symmetric(horizontal: 26).w,
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            mainAxisSize: MainAxisSize.min,
            children: [
              Row(
                mainAxisSize: MainAxisSize.min,
                children: [
                  AppImage(Assets.imagesIcConnectServiceEmail, size: 34),
                  12.horizontalSpace,
                  Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      AppText.title('联系客服', color: Colors.white),
                      AppText.title('1212121@qq.com ', color: Colors.white),
                    ],
                  ),
                ],
              ),
              18.verticalSpace,
              AppText(
                '如果您发现本平台的剧集涉嫌侵权情况，请与我们联系，我们十分重视这个问题',
                fontSize: 10,
                color: AppColor.white_40,
              ),
            ],
          ),
        ),
        20.verticalSpace,
        GestureDetector(
          onTap: () {
            Navigator.of(context).pop();
          },
          child: Container(
            height: 40.w,
            width: 0.3.sw,
            decoration: BoxDecoration(
              color: const Color(0xFF393D45),
              borderRadius: BorderRadius.circular(6).r,
            ),
            alignment: Alignment.center,
            child: AppText.secondary('确认', color: Colors.white),
          ),
        ),
      ],
    );
    return Material(color: Colors.transparent, child: child);
  }
}
